const baseurl='https://vue3antdv-7gcma6b228a5b287-1256680780.tcloudbaseapp.com/api/v2/'
Page({
    onLoad(option){
        this.setData({
            ...option
        })
        wx.request({
          url:baseurl+this.data.type+'/'+this.data.id,
          success:res=>{
              let mygenres=res.data.genres.join('/')
              let myactors=res.data.actors.map(v=>{
                  return v.name
              }).slice(0,3).join('/')
              this.setData({
                  xq:res.data,
                  mygenres,
                  myactors
              })
          }
        })
        wx.request({
            url:baseurl+this.data.type+'/'+this.data.id+'/tags?count=5',
            success:res=>{
                this.setData({
                    bq:res.data
                })
            }
          })
          wx.request({
            url:baseurl+this.data.type+'/'+this.data.id+'/interests?start=0&count=5',
            success:res=>{
                this.setData({
                    dp:res.data
                })
            }
          })
    },
})